<?php   $objDef = new objectDef($className);
?>
<div class="buttons">
		  <?php	if(isset($owner_id)):
		  		if(empty($ownerModule)) $ownerModule = $module; ?>
		  			<?php echo link_to('<img title="'.__('Go back').'" src="/images/icons/64/cancel.png"/>', $ownerModule.'/show?id='.$owner_id.'&className='.$ownerClass);?>
	      <?php else:?>
	      			<?php echo link_to('<img title="'.__('Go back').'" src="/images/icons/64/cancel.png"/>', $module.'/index?className='.$className);?>
          <?php endif;?>			
          <?php if (!$form->getObject()->isNew()): ?>
          	<?php if($objDef->canBeDeleted):?>
            &nbsp;<?php echo link_to('<img title="'.__('Delete').'" src="/images/icons/64/delete.png"/>', $module.'/delete?id='.$form->getObject()->getId().'&className='.$className,  array('method' => 'delete', 'confirm' => __('Are you sure'))); ?>
            <?php endif;?>
          <?php endif; ?>
          <input name="submit" title="<?php echo __('Save')?>" type="image" src="/images/icons/64/confirm.png">
</div>

